<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!--  <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>-->
    <script src="vue.js"></script>
</head>
<body>
<div id="app">
    <ol>
        <!-- 单参数item形式 -->
        <li v-for="(item,index) in items">
            索引：{{index}}<br>
            姓名：{{item.name}}<br>
            年龄：{{item.age}}
        </li>
    </ol>
</div>
<script>
    let vm = new Vue({
        el: "#app",
        data() {
            return {
                items: [
                    {name: "mayuahng", age: "19"},
                    {name: "alibaba", age: "111"},
                    {name: "aliyeye", age: "1229"}
                ]
            }
        },
    });
</script>
</body>
</html>
